﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using GTR.News.AdminModel;
using GTR.News.AdminDAL;

namespace GTR.News.AdminBLL
{
    public class PictureBLL
    {
        PictureDAL dal = new PictureDAL();
        /// <summary>
        /// 图片显示
        /// </summary>
        /// <returns></returns>
        public DataTable picSHOW()
        {
            return dal.picSHOW();
        }
        /// <summary>
        /// 图片添加
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public int picADD(Picture p)
        {
            return dal.picADD(p);

        }
        /// <summary>
        /// 图片删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int PictureDEL(int id)
        {
            return dal.PictureDEL(id);
        }
    }
}
